package thirdapi

type (
	RepositoryService interface {
		PushFile(accessToken, owner, repo, path, content string, branch ...string) ([]byte, error)

		UpdateFile(accessToken, owner, repo, path, sha, content string, branch ...string) ([]byte, error)

		GetBranchYmls(accessToken, owner, repo, path, ref string) ([]*YMLFile, error)

		GetRepos(accessToken, username, types, sort, direction string, page, per_page int) (*RepositoryPage, error)

		DeleteHooks(accessToken, owner, repo, hookId string) error

		CreateWebHooks(accessToken, owner, repo, backUrl, password string) (*RepositoryHook, error)

		GetRepoBranches(accessToken, owner, repo string) ([]*RepositoryBranch, error)

		GetWebHooks(accessToken, owner, repo string, page, per_page int) ([]*RepositoryHook, error)
	}
)
